<?php
	header("Content-type: text/html; charset=utf-8");
	include "./Person.class.php";

	$Person = new Person("张三","男","20");

	// $Person->say();
	//将对象$Person进行串行化
	$person_string = serialize($Person);

	//将其保存在目标的文件中
	file_put_contents("./serialize.txt", $person_string);



?>